		function comentIt(soid,nowRate){
			var serScore="";
			var insScore="";
			$(".rater-star-item").click(function(){
				if($(this).parent().parent().prev().text()=="服务质量："){
					serScore=$(this).parent().parent().next().text().substring(0,1);
					//alert("服务:"+serScore);
				}else{
					insScore=$(this).parent().parent().next().text().substring(0,1);
					//alert("仪器:"+insScore);
				}
            })
            $("#sub").click(function(){
            	 var imgStr="";
					$(".viewThumb").each(function(){
						imgStr=imgStr+$(this).children().eq(3).attr("src")+"@";
		            })
		            imgStr=imgStr.substring(0,imgStr.length-1);
				if(serScore==""||insScore==""){
					alert("请完成评分后再提交评价");
					return false;
				}
				var content = $("#textareaVal").val();
				$.ajax({
					url :Server + "/rel/ssi/addServiceOrderComment",
//					url :"http://localhost/rel/ssi/addServiceOrderComment",
					data : {
						"serScore":serScore,
						"insScore":insScore,
						"soid":soid,
						"content":content,
						"nowRate":nowRate,
//						"uid":"23"
						"uid":$("#useridoflogin").val()
					},
					type : "POST",
					dataType: "text",
					success : function(data) {
						/*alert(data);
						$(location).attr("href","new_file3");*/
						$.ajax({
							url :Server + "/orderRelevant/uploadCommentImg",
							//url :"http://localhost/orderRelevant/uploadCommentImg",
							data : {
								"images":imgStr
							},
							type : "POST",
							//dataType: "JSON",
							success : function(data) {
								console.log(JSON.stringify(data))
								alert(data);
								window.location.href="new_file3";
							},
					});	
					},
			});	 
            });
		}
            
		function loadServ(serviceId){
          $.ajax({
					url: Server + "/rel/ssi/disServInfo",
        	  		//url: "http://localhost/rel/ssi/disServInfo",
					data : {
						"serviceId":serviceId
					},
					type : "POST",
					dataType: "JSON",
					success : function(data) {
						$("#serviceItem").html('<div class="service-item-img fl">'+
						'<img src="' + data.ssimagelist[0].imagePath + '"></div>'+
						'<div class="service-item-content fl"><ul><li>'
						+ data.serviceName+
						'</li><li>服务结果获取时间：<span>'
						+ new Date(data.getTime).Format("yyyy-MM-dd") + 
						'</span></li><li class="money-color-style">'
						+data.serviceFee +''+data.unit+
						'</li></ul></div>' 
						);
					}
          });
		 };
		 
		 Date.prototype.Format = 
				function(fmt){
				var o = {
					"M+": this.getMonth() + 1, //月份 
	       			"d+": this.getDate(), //日 
	        		"h+": this.getHours(), //小时 
	        		"m+": this.getMinutes(), //分 
	        		"s+": this.getSeconds(), //秒 
	        		"q+": Math.floor((this.getMonth() + 3) / 3), //季度 
	        		"S": this.getMilliseconds() //毫秒 
				};
				if(/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
				for(var k in o)
				if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
	    		return fmt;
			}
